import java.io.File;
import java.util.ArrayList;




public class Planowanie {

	ArrayList<Type> types;
	State init;
	State goal;
	ArrayList<Action> actions;
	File f;
	
	public Planowanie(String string) {
		f = new File(string);
	}

	public static void main(String[] args) throws ParserException {
		new Planowanie(args[0]).run();		
	}

	private void run() throws ParserException {
		Parser p = new Parser();
		p.parse(f);
		types=p.types;
		init=p.init;
		goal=p.goal;
		actions=p.actions;
		FSP fsp = new FSP(types,init,goal,actions);
		fsp.run();
	}

}
